package com.example.ui;


import com.example.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("user")
public interface UserService {

    @RequestMapping(value = "user",method = RequestMethod.GET)
    @ResponseBody User user(@RequestParam("age") Integer age);
}
